/**
 * 语法格式：
 *      写法1：基本类型[]
 *      写法2：Array<基本类型>
 *      <> 泛型 宽泛的类型
 */

let persons: string[] = ['蔡嘉奕', '张文清', '黄日汉', '邹思敏']
let persons2 = ['蔡嘉奕', '张文清', '黄日汉', '邹思敏']
console.log(persons)

let scores: Array<number> = [80, 90, 70, 50]
// let scores2 = [80, 90, 70, 50]
// console.log(scores)
scores.forEach(item => {})

// 并不是 any[] 而是 (number | string | boolean)[]
let test = [10, 'zhangsan', true]
test.forEach(item => {})

export {}
